//
//  PublicAllCategoryInfoModel.m
//  Btpin
//
//  Created by Vic on 2019/3/13.
//  Copyright © 2019 Vic. All rights reserved.
//

#import "PublicAllCategoryInfoModel.h"

@implementation PublicAllCategoryInfoModel

- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues {
    self.roleArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"role"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"role"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.roleArray addObject:model];
        }
    }
    self.sexArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"sex"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"sex"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.sexArray addObject:model];
        }
    }
    self.tradeArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"trade"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"trade"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.tradeArray addObject:model];
        }
    }
    self.companyTypeArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"company_type"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"company_type"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.companyTypeArray addObject:model];
        }
    }
    self.wageArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"wage"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"wage"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.wageArray addObject:model];
        }
    }
    self.jobsNatureArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"jobs_nature"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"jobs_nature"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.jobsNatureArray addObject:model];
        }
    }
    self.educationArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"education"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"education"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.educationArray addObject:model];
        }
    }
    self.experienceArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"experience"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"experience"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.experienceArray addObject:model];
        }
    }
    self.scaleArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"scale"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"scale"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.scaleArray addObject:model];
        }
    }
    self.jobtagArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"jobtag"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"jobtag"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.jobtagArray addObject:model];
        }
    }
    self.resumetagArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"resumetag"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"resumetag"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.resumetagArray addObject:model];
        }
    }
    self.languageArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"language"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"language"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.languageArray addObject:model];
        }
    }
    self.currentArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"current"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"current"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.currentArray addObject:model];
        }
    }
    self.languageLevelArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"language_level"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"language_level"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.languageLevelArray addObject:model];
        }
    }
    self.ageArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"age"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"age"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.ageArray addObject:model];
        }
    }
    self.financeArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"finance"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"finance"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.financeArray addObject:model];
        }
    }
    self.resumeAllowListArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"resume_allow_list"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"resume_allow_list"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.resumeAllowListArray addObject:model];
        }
    }
    self.reportArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"report"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"report"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.reportArray addObject:model];
        }
    }
    self.allowVideoListArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"allow_video_list"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"allow_video_list"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.allowVideoListArray addObject:model];
        }
    }
    self.jobAllowListArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"job_allow_list"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"job_allow_list"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.jobAllowListArray addObject:model];
        }
    }
    self.jobPushBanListArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"job_push_ban_list"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in keyedValues[@"job_push_ban_list"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.jobPushBanListArray addObject:model];
        }
    }
    
    self.countryCodeListArray = [NSMutableArray arrayWithCapacity:0];
    if ([keyedValues[@"country_code"] isKindOfClass:[NSArray class]]) {
       for (NSDictionary *dic in keyedValues[@"country_code"]) {
           PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
           [model setValuesForKeysWithDictionary:dic];
           [self.countryCodeListArray addObject:model];
       }
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
